function toast(toasttitle){
    this.setData({wetoast:{reveal: true,title:toasttitle}})
      setTimeout(()=>{
          var animation = wx.createAnimation({
            duration: 1000,
            timingFunction: 'ease',
          })
          this.animationData = animation.export()
         animation.opacity(1).step()
          this.setData({
            wetoast: {
            title:toasttitle,
            animationData:animation.export()}
          })
      },30)
      setTimeout(()=>{
          var animation = wx.createAnimation({
            duration: 1000,
            timingFunction: 'ease',
          })
          this.animationData = animation.export()
         animation.opacity(0).step()
          this.setData({
            wetoast: {
              reveal: false,
              animationData:animation.export()}
          })
      },1000)
}
module.exports = toast